//
//  DULogin.h
//  APP
//
//  Created by duyujin1 on 2021/8/24.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^DULoginFinishBlock)(BOOL isLogin);

@interface DULogin : NSObject
@property(nonatomic, strong, readonly)NSString *nick;
@property(nonatomic, strong, readonly)NSString *address;
@property(nonatomic, strong, readonly)NSString *avatarUrl;

+(instancetype)sharedLogin;

#pragma mark- 登录

-(BOOL)isLogin;
-(void)loginWithFinishBlock:(DULoginFinishBlock)finishBlock;
-(void)logOut;

#pragma mark- 分享
-(void)shareToQQWithArticleUrl:(NSURL *)articleUrl formViewController:(UIViewController *)vc;

@end

NS_ASSUME_NONNULL_END
